import os

from celery import Celery
from django.utils import timezone

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'wex.settings')

app = Celery('wex')
app.now = timezone.now
app.config_from_object('django.conf:settings', namespace='CELERY')
app.autodiscover_tasks()

app.conf.task_routes = {
    'system.tasks.deploy': {'queue': 'deploy'},
}
